﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace F2S.LINQ2LinkedIn.Model
{
    [XmlRoot("update-content")]
    public class UpdateContent
    {
        [XmlElement("company", typeof(Company))]
        [XmlElement("person", typeof(Person))]
        [XmlElement("company-job-update", typeof(CompanyJobUpdate))]
        [XmlElement("company-status-update", typeof(CompanyStatusUpdate))]
        [XmlElement("update-action", typeof(UpdateAction))]
        public UpdateItem[] Items { get; set; }

        [XmlElement("is-commentable", IsNullable = true)]
        public bool? IsCommentable { get; set; }

        [XmlElement("is-likeble", IsNullable = true)]
        public bool? IsLikable { get; set; }
    }
}
